package IO_.homework;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Scanner;

public class test10 {
    public static void main(String[] args) {
        try(FileInputStream fileInputStream = new FileInputStream("./data/1.txt")){
            Scanner scanner = new Scanner(fileInputStream);
            while(scanner.hasNext()){
                String next = scanner.next();
                System.out.println(next);
            }
        } catch (IOException e) {
                e.printStackTrace();
        }
    }
}
